package com.ruoyi.check.service.impl;

import com.ruoyi.check.domain.BmCheckItem;
import com.ruoyi.check.mapper.BmCheckItemMapper;
import com.ruoyi.check.service.IBmCheckItemService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author huang
 * @Date 2023/8/8 21:12
 * @PackageName: com.ruoyi.check.service.impl
 * @ClassName: BmCheckItem
 * @Description:
 * @Version 1.0
 */
@Service
public class BmCheckItemService implements IBmCheckItemService {

    @Autowired
    private BmCheckItemMapper bmCheckItemMapper;

    @Override
    public int insert(BmCheckItem record) {
        return bmCheckItemMapper.insert(record);
    }

    @Override
    public int deleteByPrimaryKey(Long id) {
        return bmCheckItemMapper.deleteByPrimaryKey(id);
    }

    @Override
    public List<BmCheckItem> selectByCheckIdBmCheckItems(Long id) {
        return bmCheckItemMapper.selectByCheckIdBmCheckItems(id);
    }
}
